package com.dys.ai.common.exception;

/**
 * 自定义业务异常
 */
public class CustomException extends RuntimeException {
    /**
     * 错误状态码
     */
    private int code;

    public CustomException(){}

    public CustomException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
